package com.software.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.software.bean.BannerBean;
import com.software.dto.BannerDto;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author wyj
 * @since 2024-03-02
 */
public interface BannerService extends IService<BannerBean> {

    IPage<BannerBean> queryAllBannerPagination(Page<BannerBean> page);

    int deleteBannerById(Integer id);

    List<BannerBean> listBySort();

    int addBanner(BannerDto bannerDto);

    BannerBean getBannerById(Integer id);

    Integer updateBanner(BannerDto editBannerDto);
}
